home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / MPW IIGS SC / SC.022.AutoLaunch / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-24  |  1012 b   |  47 lines  |  [TEXT/MPS ]

  1. /**********************************************************************
  2. *
  3. * autolaunch globals.c -- Version 3.0
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1988-1990
  7. * All Rights Reserved.
  8. *
  9. * Written by Eric Soldan.
  10. *
  11. * Developer Technical Support Apple II Sample Code
  12. *
  13. * This file contains the code which initializes autolaunch global data.
  14. *
  15. **********************************************************************/
  16.  
  17. #include <font.h>
  18. #include <resources.h>
  19. #include <window.h>
  20.  
  21. #define __globals__ 1            /* So autolaunch.h knows what to do. */
  22. #include "autolaunch.h"
  23.  
  24. void    initLaunchData();
  25.  
  26. /**********************************************************************/
  27.  
  28. void    initGlobals()
  29. {
  30.     quitFlag = 0;                        /* doMenuCommand will set it true. */
  31.  
  32.     mainWindow  = NULL;
  33.     aboutWindow = NULL;
  34.  
  35.     initLaunchData();
  36. }
  37.  
  38. /**********************************************************************/
  39.  
  40. void    initLaunchData()
  41. {
  42.     unsigned int    i;
  43.  
  44.     for (i = 0; i < sizeof(launch); i++) ((char *)&launch)[i] = 0;
  45.     launch.timer = 1;
  46. }
  47.